package com.htandroid.htandroid.excel;

import android.os.Environment;
import android.util.Log;

import com.htandroid.htandroid.tools.ToolLog;

import java.io.File;

public class ExcelGetDir {
    // 获取Excel文件夹
    public static String getExcelDir() {
        ToolLog.log("777777777777777");
        // SD卡指定文件夹
        String sdcardPath = Environment.getExternalStorageDirectory()
                .toString();
        ToolLog.log("999999999999999999999999");
        File dir = new File(sdcardPath + File.separator + "Excel"
                + File.separator + "Person");
        if (dir.exists()) {
            ToolLog.log("8888888888888");
            return dir.toString();
        } else {
            dir.mkdirs();
            Log.e("BAG", "保存路径不存在,");
            return dir.toString();
        }
    }
}
